#define _CRT_SECURE_NO_WARNINGS 1


#include <stdio.h>

void Bubble_sort(int* arr, int sz)
{
	for (int i = 0; i < sz - 1; ++i)
	{
		for (int j = 0; j < sz - 1 - i;++j)
		{
			if (arr[j] > arr[j + 1])
			{
				int tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tmp;
			}
		}
	}

}


int main()
{
	int arr[] = { 1,2,3,8,9,6,5,3,2,7 };
	Bubble_sort(arr, (int)(sizeof(arr) / sizeof(arr[0])));
	/*for (int i = 0; i < (int)(sizeof(arr) / sizeof(arr[0])); ++i)
	{
		printf("%d ",arr[i]);
	}
	printf("\n");*/
	return 0;
}